package com.cfpamf.ms;

import com.cfpamf.common.ms.mybatis.config.DataBaseAutoConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动main函数
 */
@Slf4j
@EnableAsync
@EnableSwagger2
@EnableTransactionManagement
@SpringBootApplication(exclude = DataBaseAutoConfiguration.class)
@ComponentScan(basePackages = {"com.cfpamf.ms", "com.cfpamf.ms.insur.pay"})
public class InsurancePayApplication {

    public static void main(String[] args) {
        SpringApplication.run(InsurancePayApplication.class, args);
        log.info("===================================================================");
        log.info("======= InsurancePayApplication 1.0-SNAPSHOT start success ========");
        log.info("===================================================================");
    }
}
